package com.ruoyi.medicalPSys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.medicalPSys.mapper.XiangmuxinxiMapper;
import com.ruoyi.medicalPSys.domain.Xiangmuxinxi;
import com.ruoyi.medicalPSys.service.IXiangmuxinxiService;

/**
 * 项目信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-22
 */
@Service
public class XiangmuxinxiServiceImpl implements IXiangmuxinxiService 
{
    @Autowired
    private XiangmuxinxiMapper xiangmuxinxiMapper;
    /**
     * 查询项目信息
     * 
     * @param id 项目信息主键
     * @return 项目信息
     */
    @Override
    public Xiangmuxinxi selectXiangmuxinxiById(Long id)
    {
        return xiangmuxinxiMapper.selectXiangmuxinxiById(id);
    }

    /**
     * 查询项目信息列表
     *
     * @param xiangmuxinxi 项目信息
     * @return 项目信息
     */
    @Override
    public List<Xiangmuxinxi> selectXiangmuxinxiList(Xiangmuxinxi xiangmuxinxi)
    {
        return xiangmuxinxiMapper.selectXiangmuxinxiList(xiangmuxinxi);
    }

    /**
     * 新增项目信息
     * 
     * @param xiangmuxinxi 项目信息
     * @return 结果
     */
    @Override
    public int insertXiangmuxinxi(Xiangmuxinxi xiangmuxinxi)
    {
        return xiangmuxinxiMapper.insertXiangmuxinxi(xiangmuxinxi);
    }

    /**
     * 修改项目信息
     * 
     * @param xiangmuxinxi 项目信息
     * @return 结果
     */
    @Override
    public int updateXiangmuxinxi(Xiangmuxinxi xiangmuxinxi)
    {
        return xiangmuxinxiMapper.updateXiangmuxinxi(xiangmuxinxi);
    }

    /**
     * 批量删除项目信息
     * 
     * @param ids 需要删除的项目信息主键
     * @return 结果
     */
    @Override
    public int deleteXiangmuxinxiByIds(Long[] ids)
    {
        return xiangmuxinxiMapper.deleteXiangmuxinxiByIds(ids);
    }

    /**
     * 删除项目信息信息
     * 
     * @param id 项目信息主键
     * @return 结果
     */
    @Override
    public int deleteXiangmuxinxiById(Long id)
    {
        return xiangmuxinxiMapper.deleteXiangmuxinxiById(id);
    }
}
